package wei.xinya.shell;

import java.io.File;

public class RunShell {
    public static void main(String[] args) {

        try {
            ProcessBuilder builder = new ProcessBuilder("/bin/bash", "/home/wxy/test.sh","wxy");
            Process process = builder.start();
            process.waitFor();

            Runtime.getRuntime().exec("/bin/bash /home/wxy/test.sh xuqiqi");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
